$(function(){
	$.fn.center=function(){
		$(this).css("position","fixed");
		var h = ($(window).height()/2) - (this.outerHeight(true)/2);
		var w = ($(window).width()/2) - ($(this).outerWidth(true)/2);
		this.css("top",h);$(this).css("left",w);return $(this);
	};
});